package com.edwin.websitebe.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("box_game")
public class BoxGame {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String imgUrl;
    private String gameName;
    private BigDecimal gameSize;
    private String gameCode;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(exist = false)
    private Boolean selected = Boolean.FALSE;
    private String gameType;
    private String detailText;
    private String detailImg;
    @TableField(exist = false)
    private List<Long> typeIdList;

    private String recommendImgUrl;
    private String baiduNetDiskUrl;
    private String otherNetDiskUrl;
    private Boolean isRecommend;

    @TableField(exist = false)
    private Boolean memberValid;

    private String graphicsRequire;
    private String cpuRequire;
    private String ramRequire;
    private String osRequire;
    private String diskRequire;

}
